<?php

class SocketException extends Exception{

    function __construct($e = null) {
        $firstError = socket_strerror( socket_last_error());
        if($e)
            Error::trigger($e);
        else
            Error::trigger($firstError);
    }

}